Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support concurrency for IAVL and fix Racing conditions #802

Closed
wants to merge 1 commit into from

Conversation

mattverse
Copy link
Contributor

cref: #696

This PR fixes the problem stated above by replacing maps that causes racing conditions to sync map to be thread safe.

Confirmed and tested on a node with the following procedure:

  • Have node running
  • Spam it with tx bots and query bots
  • Previously node would crash within 1, maximum 2 minutes with the racing condition logs mentioned above
  • With fix applied node would not crash for 40+ minutes.

After 40+ minutes, node does seem to crash, but suspecting this may be to different concurrency issues (still doing more investigation)

@julienrbrt
Copy link
Member

I think this should target master instead of the release branch, this issue is probably present on v0.20 as well and v1.0.0.

@mattverse
Copy link
Contributor Author

@julienrbrt We can also backport this to older release versions as well though right?

@mattverse
Copy link
Contributor Author

mattverse commented Jul 31, 2023

@julienrbrt Awesome, let's do this: I'll close this issue for now and create a PR pointing at main. After we have that reviewed we can probably backport this to all necessary branches

@mattverse mattverse closed this Jul 31, 2023
@julienrbrt
Copy link
Member

Awesome, let's do that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants